home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
ACORNET
/
OLD-VERSIONS
/
ANET013A
/
!Acornet
/
Apps
/
!ArcWeb
/
!Run
< prev
next >
Wrap
Text File
|
1996-02-09
|
3KB
|
75 lines
| !Run for ArcWeb
|
| Copyright (C) Stewart Brodie, 1994, 1995, 1996
|
|
| Have a look at the host computer system and determine if we can run on it,
| and if so, which extra modules we need. All the extra hoops about RISC OS
| 3.6 are necessary to avoid annoying people with Toolbox in ROM.
|
RmEnsure UtilityModule 3.10 Error 0 ArcWeb requires RISC OS 3.10 or later
|
WimpSlot -min 640K
|
RmEnsure DrawFile 1.43 RMLoad System:Modules.DrawFile
RmEnsure DrawFile 1.43 Error 0 You need at least DrawFile 1.43 to run ArcWeb
RmEnsure FilterManager 0.09 RMLoad System:Modules.FilterMgr
RmEnsure FilterManager 0.09 Error 0 You need at least Filter Manager 0.09 to run ArcWeb
RMEnsure BorderUtils 0.02 RmEnsure WindowManager 3.17 RMLoad System:modules.BorderUtil
|
| Follow PRM (4:497) advice and prevent multiple running
|
If "<ArcWeb$Running>" = "yes" Then Error ArcWeb is already running
|
|
| Find out if we are in a read-only filing system
|
Set ArcWeb$Dir <Obey$Dir>
Set ArcWeb$Path <Obey$Dir>.
<Obey$Dir>.ROFS
|
|
| If the cache location is unknown (haven't seen !WebCache) AND we are in a read/write
| filing system, then use a subdirectory of ourselves as a last resort
|
If "<ArcWeb$CacheDir>" = "" Then If "<ArcWeb$ROFS_Status>" = "no" Then Set ArcWeb$CacheDir <ArcWeb$Dir>.WWWcache
If "<ArcWeb$CacheDir>" = "" Then If "<Wimp$ScrapDir>" <> "" Then Set ArcWeb$CacheDir <Wimp$ScrapDir>.WWWCache
If "<ArcWeb$CacheDir>" = "" Then Error You must find a !WebCache in a read/write filing system before running !ArcWeb
Unset ArcWeb$ROFS_Status
|
| Note that this is a special syntax for ArcWeb$Home ONLY. On startup, ArcWeb
| automatically converts this into a valid local: URL.
| The local://riscos-full-path syntax is allowed to allow you to use
| variables such as <arcweb$dir> in the ArcWeb$Home variable
|
If "<ArcWeb$Home>" = "" Then Set ArcWeb$Home local://<ArcWeb$Dir>.PublicHTML.Welcome
|
| The default hotlist is <ArcWeb$HotLists>.usrHotList, the directory is .Bookmarks on the end of that
|
If "<ArcWeb$HotLists>" = "" Then Set ArcWeb$HotLists <ArcWeb$CacheDir>
|
| Now set the user preferences file
|
If "<ArcWeb$Choices>" = "" Then Set ArcWeb$Choices <ArcWeb$CacheDir>.Choices
|
| Locate the directory containing the helpers (need to guess if we don't know)
|
If "<ArcWeb$Helper$Dir>" = "" Then Set ArcWeb$Helper$Dir <ArcWeb$Dir>.^.!WebHelper.AppDir
|
Set File$Type_FAF HTML
Set Alias$@RunType_FAF Run <Arcweb$Dir>.!Run %%*0
|
IconSprites <ArcWeb$Dir>.!Sprites
Set ArcWeb$CFSIOptions -nomode -max96K
If "<Mime$Types>" = "" Then Set Mime$Types <Obey$Dir>.mime/types
If "<ArcWeb$AuthFile>" = "" Then Set ArcWeb$AuthFile <Obey$Dir>.Auth_DB
|
| Ensure enough memory is present, and claim the minimum we can survive with to start
| up, which will expand to the first value on a 8 section cache after initialisation
|
WimpSlot -min 448K -max 448K
|
| You can change the number after -cache to be the number of cache sections you will
| have. This will make the cache size 75*number entries big. eg. 5*75 = 375 entry cache
|
Run <ArcWeb$Dir>.!RunImage -cache 5 %*0